package com.keller;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.keller.utils.LogUtils;

public class MainActivity extends AppCompatActivity {

    private MyTask myTask;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        LogUtils.d("a");
        MyTask myTask = new MyTask();
        myTask.execute(1000,2000,3000);
    }


    @Override

    protected void onDestroy() {
        super.onDestroy();
        myTask.cancel(true);
    }
}
